#include<bits/stdc++.h>
using namespace std;
const int maxn = 107;
int n, u, v;
int a[maxn];
int solve() {
  int all = 0;
  for(int i=2; i<=n; ++i) {
    if(abs(a[i]-a[i-1])>1)return 0;
    all+=abs(a[i]-a[i-1]);
  }
  if(all==0)return v+min(u, v);
  return min(u, v);
}
int main() {
  int tc; cin>>tc;
  while(tc--) {
    cin>>n>>u>>v;
    for(int i=1; i<=n; ++i)cin>>a[i];
    cout<<solve()<<'\n';
  }
}